let routes = [{
    path: "/",
    meta: {
        title: "martin"
    },
    component: () => import("@/views/Layout"),
    children: [{
        path: "/Add",
        meta: {
            title: "添加订单",
            icon: "edit"
        },
        component: () => import("@/views/Add"),
    }, {
        path: "/",
        meta: {
            title: "快递查询",
            icon: "menu"
        },
        component: () => import("@/views/Index"),
    }, {
        path: "/Customer",
        meta: {
            title: "客户管理",
            icon: "user"
        },
        component: () => import("@/views/Customer"),
    }, {
        path: "/detail/:id",
        // 对应页面组件可以使用props来接收id
        props: true,
        meta: {
            title: "订单详情",
            hideInMenu: true
        },
        component: () => import("@/views/Detail"),
    }],
}, {
    path: "/Login",
    meta: {
        title: "登录"
    },
    component: () => import("@/views/Login.vue"),
}]
export default routes;